<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
	<head>
		<base href="<%=basePath%>">

		<title></title>
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/theme.css">
		<link rel="stylesheet"
			href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
		<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
			type="text/javascript"></script>
	</head>
	<body class="content1">
		<div class="header">
			<h1 class="page-title">
				财务管理
			</h1>
		</div>
		<ul class="breadcrumb">
			<li>
				<a>Home</a>
				<span class="divider">/</span>
			</li>
			<li class="active">
				贷款申请列表
			</li>
		</ul>
		<div class="container-fluid">
			<div class="row-fluid">
				<form class="form-inline" >
					
					<a class="btn btn-primary" href="<%=basePath%>applicationlist">
						<i class="icon-plus"></i> 返回
					</a>
				</form>

				<div class="well">
					<table class="table">
						<thead>
							<tr>
								<th>
									申请单号
								</th>
								<th>
									申请人姓名
								</th>
								<th>
									申请时间
								</th>
								<th>
									受理状态
								</th>
								<th>
									申请金额
								</th>
								<th>
									购买车辆标价
								</th>
								
								<th>
									财务审核
								</th>
								
								<th style="width: 90px;">
									编辑
								</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${pi}" var="item">
								<tr>
									<td>
										${item.aptId}
									</td>
									<td>
										${item.aptTrueName}
									</td>
									<td>
										${item.aptTime}
									</td>
									<td>
										${item.aptStatus}
									</td>
									<td>
										${item.aptAmount} 
									</td>
									<td>
										${item.aptBuyCar}
									</td>
									<td>
										${item.aptCar}
									</td>
									
									
									<td>
										<c:choose>
											<c:when test="${item.aptCwsh==\"1\"}">
												 <p style="color:green;">审核通过</p>		
											</c:when>
											<c:otherwise><p style="color:red;">审核中</p></c:otherwise>
										</c:choose>
									</td>
									
<!-- 									<td> -->
<%-- 										<c:choose> --%>
<%-- 											<c:when test="${item.productstate==\"1\"}"> --%>
<!-- 												待机		 -->
<%-- 											</c:when> --%>
<%-- 											<c:otherwise>起飞</c:otherwise> --%>
<%-- 										</c:choose> --%>
<!-- 									</td> -->
									<td>
										<a href="<%=basePath%>applicationedit?aptId=${item.aptId}">编辑</a>
										&nbsp;
										<a href="<%=basePath%>applicationdelete?aptId=${item.aptId}">删除</a>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
			
				</div>  
			</div>
		</div>
	</body>
</html>
